[main]
filesize=303692
sha512=26d528000c207118b239716d629805ff61a898cc5f5417a67bf50a32303ea1a896d7dd26c9e02193367d3f0e0954b510ab1e3887fb3069fbdeac6b1acd9ae7cc

[deps.host]
stage0_musl

[mirrors]
ftp://ftp.gnu.org/gnu/patch/patch-2.6.1.tar.gz
http://ftp.gnu.org/gnu/patch/patch-2.6.1.tar.gz

[build]
[ "$STAGE" = "0" ] && CC="$butch_root_dir/bin/musl-gcc"
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CC="$CC -static" \
CFLAGS="-D_GNU_SOURCE -Werror-implicit-function-declaration $optcflags" \
LDFLAGS="-static $optldflags" \
  ./configure -C --prefix=$butch_prefix $xconfflags

make -j$MAKE_THREADS
make DESTDIR=$butch_install_dir install
